package com.jzo2o.market.controller.consumer;

import com.jzo2o.market.model.domain.Coupon;
import com.jzo2o.market.model.dto.request.MyDTO;
import com.jzo2o.market.service.ICouponService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * TODO
 *
 * @Author anjing
 * @Date 2024/12/15 21:55
 */
@RestController("userCouponControllerr")
@RequestMapping("/operation/coupon")
@Api(tags = "运营端 - 优惠劵查询相关接口")
public class CouponController {


    @Resource
    private ICouponService couponService;
    @GetMapping("/my")
    @ApiOperation("用户查询自己领取的优惠劵")
    public Coupon my(@RequestBody MyDTO myDTO){
        return couponService.my(myDTO);
    }
}
